home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 1992 August / info-mac-1992.iso / Tips / Laserprep Editing.txt < prev    next >
Internet Message Format  |  1992-08-29  |  6KB

  1. Date: Mon, 29 Jun 92 16:40:26 -0500 
  2. From: Don Gillies <gillies@cs.uiuc.edu>
  3. Subject: Information File 
  4.  
  5. Here is a copy of a file that recently disappeared from the archives.
  6. It belongs in /info-mac/tips/laserprep-editing.txt (this is a new
  7. name; the old name was imagen-postscript.txt).  This describes how to
  8. modify system 5.x and 6.x laser preps to print on non-apple printers.
  9. This is a very frequently asked question in all the mac newsgroups
  10. (the FAQ moderator wants to add this file to his FAQ index of files).
  11. -------------------------------- cut here ----------------------------
  12.  
  13. If you are having trouble printing macintosh postscript on a non-apple
  14. printer, with laserwriter drivers 5.0, 5.1, 5.2, 6.0, or 6.1, then
  15. read onward.  This file is called "laserprep-editing.txt" and lives in
  16. the directory [sumex-aim.stanford.edu]<info-mac>tips>.  Good luck!
  17.  
  18. Don Gillies - gillies@cs.uiuc.edu - University of Illinois at Urbana-Champaign
  19.  
  20. I posed a question in these newsgroups on March 23, asking how to
  21. get postscript files prepared on a Mac, to print properly on an
  22. Imagen 2308S running 4.0 software with Ultrascript.  This posting
  23. provides the solutions that were suggested by Imagen software support,
  24. and several net readers.  If you have a laserwriter, you need not
  25. modify the laser prep at all.  However, if you have a non-Apple
  26. printer (such as imagen, or something else), read onward.
  27.  
  28. The problem in printing is in the dictionary provided by Apple.  The
  29. result of doing an option-K on your Mac, just after clicking on OK in
  30. the print dialogue box, is a postscript file which contains Apple's
  31. postscript dictionary, followed by the output of the application you
  32. created a drawing with.  The dictionary, which is the header of the
  33. file, looks like:
  34.  
  35. %!
  36. %%Title: "Laser Prep -- The Apple PostScript Dictionary (md)"
  37. %%Creator: Apple Software Engineering
  38. %%CreationDate: Thursday, March 19, 1987
  39. %{appledict version #68 0
  40. % (c) CopyRight Apple Computer, Inc. 1984,1985,1986,1987,1988 All Rights Reserved.
  41. %%EndComments
  42. %%BeginProcSet: "(AppleDict md)" 68 0
  43.     .
  44.     .
  45.     .
  46. %%EndProcSet
  47. %%EOF
  48.  
  49. There are two ways of dealing with this problem.  The first and
  50. definitely the simplest, is simply to use Imagen's Apple compatibility
  51. dictionary corresponding to the version of LaserPrep your Mac puts
  52. out.  For LaserPrep 5.2, that means replacing the entire dictionary
  53. shown above with the two lines:
  54.  
  55. %!
  56. (dictv52.ps)run
  57.  
  58. "dictv5.ps", "dictv51.ps", and "dictv52.ps" are postscript dictionaries
  59. which Imagen provides on their hard disk; you can use your Imagen disk
  60. manager program to verify they're there.
  61.  
  62. The second (and more involved) way of dealing with the problem, is to
  63. fixup Apple's dictionary.  If you have a non-Imagen, or non-Apple
  64. Laserwriter, then use this method.  Two fixups are needed.  The first
  65. fixup is at approximately line 9 of the dictionary, which reads:
  66.  
  67. statusdict begin waittimeout 300 lt{0 60 300 setdefaulttimeouts}if end
  68.  
  69. This line attempts to set "statusdict" operators that are normally
  70. protected, which results in an "invalidaccess" error on Imagen.
  71. (I presume the LaserWriter must be executing something behind our
  72. backs to get this to work as is.)
  73.  
  74. To fix it, either (1) place a "serverdict begin <password> exitserver"
  75. command before the above line, or (2) comment out the above line by
  76. placing a '%' before it.
  77.  
  78. The second needed fixup is at approximately lines 10 & 11 of the
  79. dictionary.  Get rid the lines of the strings "//setrealdevice" and
  80. "//execjob".  I suggest you delete these strings (along with their
  81. line termination character, either a carriage return (^M, ASCII 015)
  82. if the file was uploaded in raw/binary mode, or newline (^J, return
  83. key on UNIX, ASCII 012) if the file was uploaded in text translation
  84. mode.  Or you can comment them out: prepend a '%' (indicates comments)
  85. to each command and append and appropriate ^J or ^M, depending on what
  86. is terminating the rest of the lines in the file.
  87.  
  88. (No, I don't know what "setrealdevice" and "execjob" do, they aren't
  89. in Adobe's ps ref manual, appendix D.6 - SYSTEM PARAMETERS.  Must be
  90. Apple-specific stuff.  If you know, please tell me too.)
  91.  
  92. I should probably mention that several persons pointed me at host
  93. sumex-aim.stanford.edu, which contains contributed programs for the
  94. Mac.  Specifically, they suggested that I look at "macps-prepfix.shar",
  95. which contains programs "macps" and "prepfix", one of whose functions
  96. is to prepend a standard Apple dictionary to a postscript program
  97. on a unix host, before sending it to a LaserWriter.  These programs
  98. aren't very useful with an Imagen, as it's a lot easier just to add
  99. that "(dictv52.ps)run" command to your postscript files, before spooling
  100. them to Imagen.
  101.                 ******
  102. I should probably also mention that one of the first problems we
  103. encountered with postscript on our Imagens, had to do with
  104. "invalidaccess" error messages not related to the above dictionary
  105. problems.  Imagen already had a fix for this, which involves downloading
  106. two files to your hard disk, "2020.ps" and "startup.ps", which change
  107. some systemdict parameters ... related to memory allocation, I believe.
  108. If you have an Imagen, plan on doing much future postscript work,
  109. and haven't yet applied this fix, you can get it by calling Imagen or
  110. e-mailing me.
  111. -- 
  112. --------
  113. Ed Arnold * NCAR (Nat'l Center for Atmospheric Research) * Mesa Lab
  114. PO Box 3000 * Boulder, CO  80307-3000 * 303-497-1253(w) * 303-494-6949(h)
  115. era@ncar.ucar.edu (128.117.64.4) * {ames,gatech,noao,...}!ncar!era
  116.  
  117.  
  118.  
  119.